<template>
    <div class="header">
        <div class="header-left" @click="toHome">
            <span class="iconfont">
                &#xe660;
            </span>
        </div>
        <div class="header-title">
            城市选择
        </div>
    </div>
</template>
<script>
export default {
    methods:{
        toHome(){
            this.$router.push('/');
        }
    }
}
</script>
<style scoped>
.header{
    width: 100%;
    line-height: .88rem;
    background: #21cde1;
    color: #fff;
    font-size: .36rem;
    position: relative;
}
.header-left{
    width: .4rem;
    padding: 0 .2rem;
    text-align: center;
    font-weight: bold;
    position: absolute;
    cursor: pointer;
}
.header-title{
    text-align: center;
}
</style>